package com.web.common.iot.mqtt.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.web.common.api.config.ServiceInstanceName;
import com.web.common.iot.mqtt.entity.MqttBaseListenerEntity;
import com.web.common.result.R;

@FeignClient(name = ServiceInstanceName.SERVICE_IOT_NAME, contextId = "mqttLogApi", path = "/iot/mqtt/log")
public interface MqttLogApi {

	/**
	 * 获取MQTT日志列表
	 * @param condition 查询条件
	 * @return R<IPage<MqttBaseListener>> 数据列表
	 *
	 * @author zhouhui
	 * @since 2024.04.27
	 */
	@PostMapping(path = "/list")
	@ResponseBody
	R<IPage<MqttBaseListenerEntity>> getMqttLogList(@RequestBody MqttBaseListenerEntity condition);
}
